package com.ysqcould.message.domain;

import com.ysqcould.common.annotation.Excel;
import com.ysqcould.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 发送短信的小程序对象 t_sms_app
 * 
 * @author jcd
 * @date 2022-09-21
 */
public class SmsApp extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 小程序id */
    private Long id;

    /** 小程序appId */
    @Excel(name = "小程序appId")
    private String appId;

    /** 小程序密钥 */
    @Excel(name = "小程序密钥")
    private String sercet;

    /** 小程序名称 */
    @Excel(name = "小程序名称")
    private String name;

    /** 协会id */
    @Excel(name = "协会id")
    private Long asId;

    /** 状态（0 正常 1 冻结 2删除） */
    @Excel(name = "状态", readConverterExp = "0=,正=常,1=,冻=结,2=删除")
    private Long status;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setAppId(String appId) 
    {
        this.appId = appId;
    }

    public String getAppId() 
    {
        return appId;
    }
    public void setSercet(String sercet) 
    {
        this.sercet = sercet;
    }

    public String getSercet() 
    {
        return sercet;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setAsId(Long asId) 
    {
        this.asId = asId;
    }

    public Long getAsId() 
    {
        return asId;
    }
    public void setStatus(Long status) 
    {
        this.status = status;
    }

    public Long getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("appId", getAppId())
            .append("sercet", getSercet())
            .append("name", getName())
            .append("asId", getAsId())
            .append("status", getStatus())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
